class HealthRecordModel {
  int checkTime;
  List<String> selectedReservations;
  String checkDetail;
  List<String> checkImgs;
  String meProblem;
  String doctorSolution;
  String otherPoints;
  String sId;
  String weekStr;

  HealthRecordModel(
      {this.checkTime,
      this.selectedReservations,
      this.checkDetail,
      this.checkImgs,
      this.meProblem,
      this.doctorSolution,
      this.otherPoints,
      this.sId,
      this.weekStr});

  HealthRecordModel.fromJson(Map<String, dynamic> json) {
    checkTime = json['check_time'];
    selectedReservations = json['selected_reservations'].cast<String>();
    checkDetail = json['check_detail'];
    checkImgs = json['check_imgs'].cast<String>();
    meProblem = json['meProblem'];
    doctorSolution = json['doctorSolution'];
    otherPoints = json['otherPoints'];
    sId = json['_id'];
    weekStr = json['week_str'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['check_time'] = this.checkTime;
    data['selected_reservations'] = this.selectedReservations;
    data['check_detail'] = this.checkDetail;
    data['check_imgs'] = this.checkImgs;
    data['meProblem'] = this.meProblem;
    data['doctorSolution'] = this.doctorSolution;
    data['otherPoints'] = this.otherPoints;
    data['_id'] = this.sId;
    data['week_str'] = this.weekStr;
    return data;
  }
}

